"""
用来做路由分发

"""
from django.conf.urls.static import static   #用于访问媒体文件
from django.conf import settings  #用于访问媒体文件
from django.contrib import admin
from django.urls import path ,re_path,include

from apps.app01 import views
from django.urls import reverse
urlpatterns = [
    path('test/', views.test),
    # app02/test2
    path('index/', views.index,name='index'),
    path('login/', views.login,name='login'),
    path('media/', views.media,name='media'),
    path('nid/<str:nid>/', views.nid,name='nid'),

]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)  #用于访问媒体文件